<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<title>dev: dev::net::TcpConnectionInputStream Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">dev
   &#160;<span id="projectnumber">0.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classdev_1_1net_1_1_tcp_connection_input_stream.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classdev_1_1net_1_1_tcp_connection_input_stream-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">dev::net::TcpConnectionInputStream Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Tcp连接输入流  
 <a href="classdev_1_1net_1_1_tcp_connection_input_stream.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_tcp_connection_input_stream_8hpp_source.html">TcpConnectionInputStream.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for dev::net::TcpConnectionInputStream:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classdev_1_1net_1_1_tcp_connection_input_stream.png" usemap="#dev::net::TcpConnectionInputStream_map" alt=""/>
  <map id="dev::net::TcpConnectionInputStream_map" name="dev::net::TcpConnectionInputStream_map">
<area href="classdev_1_1net_1_1_tcp_connection_stream.html" title="Tcp连接流 " alt="dev::net::TcpConnectionStream" shape="rect" coords="0,56,213,80"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a5101310da0c93c5aa9c03377fa3b252f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5101310da0c93c5aa9c03377fa3b252f"></a>
typedef <a class="el" href="classdev_1_1net_1_1_tcp_connection_input_stream.html">TcpConnectionInputStream</a>&#160;</td><td class="memItemRight" valign="bottom"><b>self</b></td></tr>
<tr class="separator:a5101310da0c93c5aa9c03377fa3b252f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ad081a3f28b123cbf4706e5a60deacc12"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad081a3f28b123cbf4706e5a60deacc12"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TcpConnectionInputStream</b> (<a class="el" href="classdev_1_1net_1_1_socket.html">Socket</a> &amp;sock, size_t <a class="el" href="classdev_1_1net_1_1_tcp_connection_stream.html#a3ae773ddc1f353c00cebf98eb1a9d19e">size</a>=1024 *32)</td></tr>
<tr class="separator:ad081a3f28b123cbf4706e5a60deacc12"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69049ed0fde934babb903c4383bb1e19"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a69049ed0fde934babb903c4383bb1e19"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TcpConnectionInputStream</b> (<a class="el" href="classdev_1_1net_1_1_socket.html">Socket</a> &amp;sock, boost::shared_array&lt; char &gt; buff, size_t <a class="el" href="classdev_1_1net_1_1_tcp_connection_stream.html#a3ae773ddc1f353c00cebf98eb1a9d19e">size</a>=1024 *32)</td></tr>
<tr class="separator:a69049ed0fde934babb903c4383bb1e19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd3cc5a82c38957358887f630c669f2f"><td class="memItemLeft" align="right" valign="top">ssize_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdev_1_1net_1_1_tcp_connection_input_stream.html#afd3cc5a82c38957358887f630c669f2f">fill</a> (void)</td></tr>
<tr class="memdesc:afd3cc5a82c38957358887f630c669f2f"><td class="mdescLeft">&#160;</td><td class="mdescRight">从套接字读取数据填充流缓存  <a href="#afd3cc5a82c38957358887f630c669f2f">More...</a><br /></td></tr>
<tr class="separator:afd3cc5a82c38957358887f630c669f2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1b0b2a1465f9a25d27f0b6422de49f4"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdev_1_1net_1_1_tcp_connection_input_stream.html#ac1b0b2a1465f9a25d27f0b6422de49f4">read</a> (char *buf, size_t length)</td></tr>
<tr class="memdesc:ac1b0b2a1465f9a25d27f0b6422de49f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">从流中读取数据  <a href="#ac1b0b2a1465f9a25d27f0b6422de49f4">More...</a><br /></td></tr>
<tr class="separator:ac1b0b2a1465f9a25d27f0b6422de49f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8808e6abf02d0207abdf534a7136808"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdev_1_1net_1_1_tcp_connection_input_stream.html#ad8808e6abf02d0207abdf534a7136808">peek</a> (char *buf, size_t length)</td></tr>
<tr class="memdesc:ad8808e6abf02d0207abdf534a7136808"><td class="mdescLeft">&#160;</td><td class="mdescRight">从流中取出数据，不会把数据从流中删除  <a href="#ad8808e6abf02d0207abdf534a7136808">More...</a><br /></td></tr>
<tr class="separator:ad8808e6abf02d0207abdf534a7136808"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a057f6beacac44483cb812e04239636cc"><td class="memTemplParams" colspan="2"><a class="anchor" id="a057f6beacac44483cb812e04239636cc"></a>
template&lt;typename T &gt; </td></tr>
<tr class="memitem:a057f6beacac44483cb812e04239636cc"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classdev_1_1net_1_1_tcp_connection_input_stream.html">self</a> &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classdev_1_1net_1_1_tcp_connection_input_stream.html#a057f6beacac44483cb812e04239636cc">operator&gt;&gt;</a> (T &amp;x)</td></tr>
<tr class="memdesc:a057f6beacac44483cb812e04239636cc"><td class="mdescLeft">&#160;</td><td class="mdescRight">&gt;&gt;运算符重载,读到基础类型时请先判断长度是否匹配 <br /></td></tr>
<tr class="separator:a057f6beacac44483cb812e04239636cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classdev_1_1net_1_1_tcp_connection_stream"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classdev_1_1net_1_1_tcp_connection_stream')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classdev_1_1net_1_1_tcp_connection_stream.html">dev::net::TcpConnectionStream</a></td></tr>
<tr class="memitem:a89e183a86ce676e7c84a52acad657cb6 inherit pub_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdev_1_1net_1_1_tcp_connection_stream.html#a89e183a86ce676e7c84a52acad657cb6">capacity</a> (void)</td></tr>
<tr class="memdesc:a89e183a86ce676e7c84a52acad657cb6 inherit pub_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取流能存储的数据大小  <a href="#a89e183a86ce676e7c84a52acad657cb6">More...</a><br /></td></tr>
<tr class="separator:a89e183a86ce676e7c84a52acad657cb6 inherit pub_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ae773ddc1f353c00cebf98eb1a9d19e inherit pub_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdev_1_1net_1_1_tcp_connection_stream.html#a3ae773ddc1f353c00cebf98eb1a9d19e">size</a> (void)</td></tr>
<tr class="memdesc:a3ae773ddc1f353c00cebf98eb1a9d19e inherit pub_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取流中数据大小  <a href="#a3ae773ddc1f353c00cebf98eb1a9d19e">More...</a><br /></td></tr>
<tr class="separator:a3ae773ddc1f353c00cebf98eb1a9d19e inherit pub_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09c07ca4dd2290ba29c581f061e9cb93 inherit pub_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdev_1_1net_1_1_tcp_connection_stream.html#a09c07ca4dd2290ba29c581f061e9cb93">space</a> (void)</td></tr>
<tr class="memdesc:a09c07ca4dd2290ba29c581f061e9cb93 inherit pub_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取流剩余存储空间  <a href="#a09c07ca4dd2290ba29c581f061e9cb93">More...</a><br /></td></tr>
<tr class="separator:a09c07ca4dd2290ba29c581f061e9cb93 inherit pub_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_types_classdev_1_1net_1_1_tcp_connection_stream"><td colspan="2" onclick="javascript:toggleInherit('pro_types_classdev_1_1net_1_1_tcp_connection_stream')"><img src="closed.png" alt="-"/>&#160;Protected Types inherited from <a class="el" href="classdev_1_1net_1_1_tcp_connection_stream.html">dev::net::TcpConnectionStream</a></td></tr>
<tr class="memitem:a22fb9592a27f6d85cf0fe9f275ce96d4 inherit pro_types_classdev_1_1net_1_1_tcp_connection_stream"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a22fb9592a27f6d85cf0fe9f275ce96d4"></a>
typedef <a class="el" href="classdev_1_1net_1_1_tcp_connection_stream.html">TcpConnectionStream</a>&#160;</td><td class="memItemRight" valign="bottom"><b>self</b></td></tr>
<tr class="separator:a22fb9592a27f6d85cf0fe9f275ce96d4 inherit pro_types_classdev_1_1net_1_1_tcp_connection_stream"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_classdev_1_1net_1_1_tcp_connection_stream"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classdev_1_1net_1_1_tcp_connection_stream')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="classdev_1_1net_1_1_tcp_connection_stream.html">dev::net::TcpConnectionStream</a></td></tr>
<tr class="memitem:af6dcac8d6517ee12ce82c9267249a353 inherit pro_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af6dcac8d6517ee12ce82c9267249a353"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TcpConnectionStream</b> (<a class="el" href="classdev_1_1net_1_1_socket.html">Socket</a> &amp;sock, size_t <a class="el" href="classdev_1_1net_1_1_tcp_connection_stream.html#a3ae773ddc1f353c00cebf98eb1a9d19e">size</a>)</td></tr>
<tr class="separator:af6dcac8d6517ee12ce82c9267249a353 inherit pro_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ef66dedc5c080786e6008b5b9553e50 inherit pro_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8ef66dedc5c080786e6008b5b9553e50"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TcpConnectionStream</b> (<a class="el" href="classdev_1_1net_1_1_socket.html">Socket</a> &amp;sock, boost::shared_array&lt; char &gt; buff, size_t <a class="el" href="classdev_1_1net_1_1_tcp_connection_stream.html#a3ae773ddc1f353c00cebf98eb1a9d19e">size</a>)</td></tr>
<tr class="separator:a8ef66dedc5c080786e6008b5b9553e50 inherit pro_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a36bec7cd4b147e05316930fccdeb214d inherit pro_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a36bec7cd4b147e05316930fccdeb214d"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdev_1_1net_1_1_tcp_connection_stream.html#a36bec7cd4b147e05316930fccdeb214d">reset</a> (void)</td></tr>
<tr class="memdesc:a36bec7cd4b147e05316930fccdeb214d inherit pro_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="mdescLeft">&#160;</td><td class="mdescRight">重置流 <br /></td></tr>
<tr class="separator:a36bec7cd4b147e05316930fccdeb214d inherit pro_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17a557385b5af582c98bdd525a333cf6 inherit pro_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a17a557385b5af582c98bdd525a333cf6"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>read</b> (char *buf, size_t length)</td></tr>
<tr class="separator:a17a557385b5af582c98bdd525a333cf6 inherit pro_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae94584be5275ff8da7f220223beb965a inherit pro_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae94584be5275ff8da7f220223beb965a"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>write</b> (const char *buf, size_t length)</td></tr>
<tr class="separator:ae94584be5275ff8da7f220223beb965a inherit pro_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f00f30ffc87897772183c70b4f3abd4 inherit pro_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4f00f30ffc87897772183c70b4f3abd4"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>peek</b> (char *buf, size_t length)</td></tr>
<tr class="separator:a4f00f30ffc87897772183c70b4f3abd4 inherit pro_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28bb2de60e94afafaf5f66710a9442c6 inherit pro_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a28bb2de60e94afafaf5f66710a9442c6"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>skip</b> (size_t length)</td></tr>
<tr class="separator:a28bb2de60e94afafaf5f66710a9442c6 inherit pro_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a88bcc7529e50e85e41b173601392c2d3 inherit pro_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="memTemplParams" colspan="2"><a class="anchor" id="a88bcc7529e50e85e41b173601392c2d3"></a>
template&lt;typename T &gt; </td></tr>
<tr class="memitem:a88bcc7529e50e85e41b173601392c2d3 inherit pro_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classdev_1_1net_1_1_tcp_connection_stream.html">self</a> &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classdev_1_1net_1_1_tcp_connection_stream.html#a88bcc7529e50e85e41b173601392c2d3">operator&gt;&gt;</a> (T &amp;x)</td></tr>
<tr class="memdesc:a88bcc7529e50e85e41b173601392c2d3 inherit pro_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="mdescLeft">&#160;</td><td class="mdescRight">&gt;&gt;运算符重载,读到基础类型时请先判断长度是否匹配 <br /></td></tr>
<tr class="separator:a88bcc7529e50e85e41b173601392c2d3 inherit pro_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af0a0f8127849b38d0ba60cb8505ca75d inherit pro_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="memTemplParams" colspan="2"><a class="anchor" id="af0a0f8127849b38d0ba60cb8505ca75d"></a>
template&lt;typename T &gt; </td></tr>
<tr class="memitem:af0a0f8127849b38d0ba60cb8505ca75d inherit pro_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classdev_1_1net_1_1_tcp_connection_stream.html">self</a> &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classdev_1_1net_1_1_tcp_connection_stream.html#af0a0f8127849b38d0ba60cb8505ca75d">operator&lt;&lt;</a> (T &amp;x)</td></tr>
<tr class="memdesc:af0a0f8127849b38d0ba60cb8505ca75d inherit pro_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="mdescLeft">&#160;</td><td class="mdescRight">&lt;&lt;运算符重载,写入时请先判断流时候有足够的空间 <br /></td></tr>
<tr class="separator:af0a0f8127849b38d0ba60cb8505ca75d inherit pro_methods_classdev_1_1net_1_1_tcp_connection_stream"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_classdev_1_1net_1_1_tcp_connection_stream"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classdev_1_1net_1_1_tcp_connection_stream')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="classdev_1_1net_1_1_tcp_connection_stream.html">dev::net::TcpConnectionStream</a></td></tr>
<tr class="memitem:ae74c00494781359ecb0a35d563776b6b inherit pro_attribs_classdev_1_1net_1_1_tcp_connection_stream"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae74c00494781359ecb0a35d563776b6b"></a>
<a class="el" href="classdev_1_1net_1_1_socket.html">Socket</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>sock_</b></td></tr>
<tr class="separator:ae74c00494781359ecb0a35d563776b6b inherit pro_attribs_classdev_1_1net_1_1_tcp_connection_stream"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Tcp连接输入流 </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="afd3cc5a82c38957358887f630c669f2f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ssize_t TcpConnectionInputStream::fill </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>从套接字读取数据填充流缓存 </p>
<dl class="section return"><dt>Returns</dt><dd>成功返回从套接字读取的字节数,失败返回SOCKET_ERROR </dd></dl>

</div>
</div>
<a class="anchor" id="ad8808e6abf02d0207abdf534a7136808"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">size_t dev::net::TcpConnectionInputStream::peek </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>从流中取出数据，不会把数据从流中删除 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">buf</td><td>缓存 </td></tr>
    <tr><td class="paramname">length</td><td>缓存大小 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>取到的数据长度 </dd></dl>

</div>
</div>
<a class="anchor" id="ac1b0b2a1465f9a25d27f0b6422de49f4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">size_t dev::net::TcpConnectionInputStream::read </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>从流中读取数据 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">buf</td><td>缓存 </td></tr>
    <tr><td class="paramname">length</td><td>缓存大小 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>读到的数据长度 </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>dev/dev/net/<a class="el" href="_tcp_connection_input_stream_8hpp_source.html">TcpConnectionInputStream.hpp</a></li>
<li>dev/src/net/TcpConnectionInputStream.cpp</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>dev</b></li><li class="navelem"><b>net</b></li><li class="navelem"><a class="el" href="classdev_1_1net_1_1_tcp_connection_input_stream.html">TcpConnectionInputStream</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.10 </li>
  </ul>
</div>
</body>
</html>
